package com.immortal.core.utils;

import org.springframework.context.support.MessageSourceAccessor;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.security.core.SpringSecurityMessageSource;

public class ImMessageSource extends ResourceBundleMessageSource {
    public ImMessageSource() {
        this.setBasename("com.immortal.core.messages");
    }

    public static MessageSourceAccessor getAccessor() {
        return new MessageSourceAccessor(new SpringSecurityMessageSource());
    }
}
